<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: BufferObject Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">BufferObject Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="BufferObject" --><div class="dynheader">
Inheritance diagram for BufferObject:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_buffer_object.png" usemap="#BufferObject_map" alt=""/>
  <map id="BufferObject_map" name="BufferObject_map">
<area href="class_index_buffer.html" alt="IndexBuffer" shape="rect" coords="0,56,84,80"/>
<area href="class_vertex_buffer.html" alt="VertexBuffer" shape="rect" coords="94,56,178,80"/>
</map>
 </div></div>

<p><a href="class_buffer_object-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae89eb5432f431ba376671cc4f32f6bb5"></a><!-- doxytag: member="BufferObject::needUpdate" ref="ae89eb5432f431ba376671cc4f32f6bb5" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>needUpdate</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70e113b73172bb9270c560696d41b322"></a><!-- doxytag: member="BufferObject::setNeedUpdate" ref="a70e113b73172bb9270c560696d41b322" args="(bool val)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setNeedUpdate</b> (bool val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc865e897602dfe19eb38948e0934c22"></a><!-- doxytag: member="BufferObject::getBufferID" ref="adc865e897602dfe19eb38948e0934c22" args="() const " -->
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>getBufferID</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fede68b13b01ff81e6693fd2ceff761"></a><!-- doxytag: member="BufferObject::getType" ref="a6fede68b13b01ff81e6693fd2ceff761" args="() const " -->
GLenum&#160;</td><td class="memItemRight" valign="bottom"><b>getType</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d0cc8894a8e8bf0eb64d1c000bde8ce"></a><!-- doxytag: member="BufferObject::mapBuffer" ref="a8d0cc8894a8e8bf0eb64d1c000bde8ce" args="(GLvoid **buffer, GLuint *size)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mapBuffer</b> (GLvoid **buffer, GLuint *size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a1273374babb1731550bdeeef34d557"></a><!-- doxytag: member="BufferObject::unmapBuffer" ref="a7a1273374babb1731550bdeeef34d557" args="()" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>unmapBuffer</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e919f90af063d3375c46cdf2532e116"></a><!-- doxytag: member="BufferObject::getBufferSize" ref="a9e919f90af063d3375c46cdf2532e116" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>getBufferSize</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc49e4c02d1afbb4923ecea942f4e10a"></a><!-- doxytag: member="BufferObject::setBufferData" ref="acc49e4c02d1afbb4923ecea942f4e10a" args="(GLvoid *buffer, GLuint size)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>setBufferData</b> (GLvoid *buffer, GLuint size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad20f99260dc74c79f1abc94b971d0e3e"></a><!-- doxytag: member="BufferObject::setBufferSubData" ref="ad20f99260dc74c79f1abc94b971d0e3e" args="(GLint offset, GLuint size, GLvoid *buffer)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>setBufferSubData</b> (GLint offset, GLuint size, GLvoid *buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_buffer_object.html#aad29a14339ce59043e65931fe95e08bd">create</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_buffer_object.html#a762ae98559820323e1233d35f89453e8">destroy</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_buffer_object.html#a2d96f55ee13c92c9bed6355822d1a522">BufferObject</a> (GLenum boTarget=0)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd88505014ecdb68b611b635a2103dcc"></a><!-- doxytag: member="BufferObject::m_boTarget" ref="acd88505014ecdb68b611b635a2103dcc" args="" -->
GLenum&#160;</td><td class="memItemRight" valign="bottom"><b>m_boTarget</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2368389fd9e615badf2ed4464edf78b4"></a><!-- doxytag: member="BufferObject::m_vboID" ref="a2368389fd9e615badf2ed4464edf78b4" args="" -->
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>m_vboID</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3edac99d630a5fddc6713ed0b2f2fdc"></a><!-- doxytag: member="BufferObject::m_bufferSize" ref="af3edac99d630a5fddc6713ed0b2f2fdc" args="" -->
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>m_bufferSize</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f0ce810903d9a1c199ea7790026620e"></a><!-- doxytag: member="BufferObject::m_needUpdate" ref="a4f0ce810903d9a1c199ea7790026620e" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_needUpdate</b></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2d96f55ee13c92c9bed6355822d1a522"></a><!-- doxytag: member="BufferObject::BufferObject" ref="a2d96f55ee13c92c9bed6355822d1a522" args="(GLenum boTarget=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BufferObject::BufferObject </td>
          <td>(</td>
          <td class="paramtype">GLenum&#160;</td>
          <td class="paramname"><em>boTarget</em> = <code>0</code></td><td>)</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initializes a Buffer Object (BO) </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aad29a14339ce59043e65931fe95e08bd"></a><!-- doxytag: member="BufferObject::create" ref="aad29a14339ce59043e65931fe95e08bd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BufferObject::create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a vertex buffer object of the specified type. </p>

</div>
</div>
<a class="anchor" id="a762ae98559820323e1233d35f89453e8"></a><!-- doxytag: member="BufferObject::destroy" ref="a762ae98559820323e1233d35f89453e8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool BufferObject::destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deletes the vertex buffer object, freeing all the resources </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>engine/include/<a class="el" href="_buffer_object_8h_source.html">BufferObject.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Aug 27 2011 15:38:53 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
